<div class="title">
    <h2><?= lang('rentacar.optional.accessories') ?></h2>
</div>

<form method="POST" onsubmit="submit_extras($('#set_extras'));return false;" id="car_accasories">

    <?foreach($accessories as $row):?>
        <ul class="cart-options cart-options-fix-padding clearfix">
            <?
                $checked = '';
                if($this->session->userdata('extras')):
                    foreach($this->session->userdata('extras') as $id): if($row->accessoryId == $id): $checked = 'checked="checked"'; endif; endforeach;                     
                endif;
            ?>
            <li class="clearfix">
                <input type="checkbox" value="1" name="extras[<?=$row->accessoryId;?>]" id="extra-<?=$row->accessoryId;?>" <?=$checked?>>
                <p><b> <?=$row->type;?> </b>, <?=$row->description;?> (<?=$row->price;?> &euro; / <?= lang('rentacar.day') ?>)</p>
            </li>
        </ul>

        <? $checked = ''; endforeach;?>    

    <div class="buttons-cart">
        <input type="submit" value="<?= lang('rentacar.set.selected.accessories') ?>" id="set_extras">
    </div>

</form>